package cn.tj212.xiaoyin.core.user.service;

import cn.tj212.xiaoyin.common.page.TailPage;
import cn.tj212.xiaoyin.core.user.domain.UserFollowStudyRecord;
import cn.tj212.xiaoyin.core.user.domain.UserFollows;

import java.util.List;

public interface IUserFollowsService {

    public UserFollows getById(Long id);

    public List<UserFollows> queryAll(UserFollows queryEntity);

    /**
     * 分页获取
     * @param queryEntity
     * @param page
     * @return
     */
    public TailPage<UserFollows> queryPage(UserFollows queryEntity,TailPage<UserFollows> page);

    public TailPage<UserFollowStudyRecord> queryUserFollowStudyRecordPage(UserFollowStudyRecord queryEntity, TailPage<UserFollowStudyRecord> page);

    public void createSelectivity(UserFollows entity);

    /**
     * 根据id更新
     */
    public void update(UserFollows entity);

    /**
     * 根据id进行可选择性更新
     * @param entity
     */
    public void updateSelectivity(UserFollows entity);

    /**
     * 物理删除
     * @param entity
     */
    public void delete(UserFollows entity);

    /**
     * 逻辑删除
     * @param entity
     */
    public void deleteLogic(UserFollows entity);
}
